<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>v-model指令</title>
    <script src="vue.js"></script>
   
</head>
<body>
    <div id="app">
        请输入信息:<input type="text" v-model="msg">
        <div>{{msg}}</div> 
    </div>
</body>
</html>
<script>
    var vm=new Vue({
        el:'#app',
        data:{
            msg:'Giles'
        }
       
    });
</script>